@import url(https://fonts.googleapis.com/css?family=Open+Sans:600);

.frame{
    position: absolute;
    width: 400px;
    height: 400px;
    inset: 0;
    margin: auto;
    box-shadow: 1px 2px 10px rgba(0,0,0,0.3);
    border-radius: 2px;
    background-color: #4a627a;
    color: #fff;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;

}

.menu-icon{
    position: absolute;
    width: 50px;
    z-index: 2;
    height: 26px;
    inset: 0;
    margin: auto;
    cursor: pointer;

    .line-top{
        position: absolute;
        width: 50px;
        height: 4px;
        top: 0;
        left: 0;
        background-color: #fff;
        animation: line-top-close 1s ease both;
    }

    .line-bottom{
        @extend .line-top;
        top: initial;
        bottom: 0;
        animation: line-bottom-close 1s ease both;
    }
    &.active{
        pointer-events: none;
        .line-top{
            animation: line-top-open 1s ease both;
        }

        .line-bottom{
            animation: line-bottom-open 1s ease both;
        }
        
    }

    &.paused{
        .line-top,
        .line-bottom{
            animation: none;
        }
    }
}


.menu{
    position: absolute;
    width: 300px;
    height: 20px;
    inset: 0;
    margin: auto;
    padding: 0 10px;
    opacity: 0;
    pointer-events: none;
    transition: all .5s ease-in-out;

    &.active{
        opacity: 1;
        pointer-events: all;
        transition: all .5s ease-in-out .5s;
    }

    ul{
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        list-style: none;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        line-height: 20px;
        width: 280px;
        margin: 0;
        padding: 0;
        
        li{
            position: relative;
            display: block;
            flex: 0 1 auto;
            margin: 0;
            padding: 0;
            cursor: pointer;
            transition: all .3s ease-in-out;
            &:hover{
                opacity: 0.6;
            }
        }


            
    }
    
}

@keyframes line-top-open{
    0%{
        transform: translate3d(0, 0, 0) scaleY(1) scaleX(1);
    }
    40%{
        transform: translate3d(0, -20px, 0) scaleY(.5) scaleX(1);
    }
    100%{
        transform: translate3d(0,-20px,0) scaleY(.5) scaleX(6);
    }
}

@keyframes line-bottom-open{
    0%{
        transform: translate3d(0, 0, 0) scaleY(1) scaleX(1);
    }
    40%{
        transform: translate3d(0, 20px, 0) scaleY(.5) scaleX(1);
    }
    100%{
        transform: translate3d(0,20px,0) scaleY(.5) scaleX(6);
    }
}

@keyframes line-top-close{
    0%{
        transform: translate3d(0,-20px, 0) scaleY(.5) scaleX(6);
    }
    60%{
        transform: translate3d(0, -20px, 0) scaleY(.5) scaleX(1);
    }
    100%{
        transform: translate3d(0,0,0) scaleY(1) scaleX(1);
    }
}

@keyframes line-bottom-close{
    0%{
        transform: translate3d(0,20px, 0) scaleY(.5) scaleX(6);
    }
    60%{
        transform: translate3d(0, 20px, 0) scaleY(.5) scaleX(1);
    }
    100%{
        transform: translate3d(0,0,0) scaleY(1) scaleX(1);
    }
}